
<script type="text/javascript" src="/js/script00.js" language="javascript" ></script>
<script type="text/javascript" src="/js/checkout.js" language="javascript" ></script>
<script type="text/javascript" src="/js/shoppingcart.js" language="javascript" ></script>
<input type="hidden" id="text_lang" value="<?php echo $text_lang;?>"/>
		<?php 
		if(isset($_SESSION['config_template']))
		{
			if($_SESSION['config_template']=='layoutmain_web1')
			{?>
			<link rel="stylesheet" type="text/css" href="/css/style_checkout.css" />
			 	<?php IF(ISSET($_GET['step']) && $_GET['step']==2) { ?>
				<form enctype="multipart/form-data" onsubmit="return checkstep()" method="post" action="/cart/payment" name="payment" id="payment" class="form">
					<div class="middle col-2-right-layout">
					<!-- start content -->
						<div class="page-head-alt button-level">
							<h3><?php echo $this->text_title;?></h3>
						</div>
							<table cellspacing="0" border="0" class="data-table box-table shopping-cart" id="shopping-cart-table">
							<colgroup>
								<col width="40">
								<col width="75">
								<col>
								<col width="80">
								<col width="1">
								<col width="80">
							</colgroup>
							<?php
							$subTotal=0;
							if(isset($this->cart))
							{
								if($this->cart==0)
								{
								?>
									<tr class="cart_content"><td align="center" valign="center" colspan="7"><?php echo $this->text_empty;?></td></tr>
								<?php
								} else	{ 
									if(is_array($this->cart))
									{ ?>
							<thead>
								<tr class="first last">
									<th rowspan="1"><div><?php echo $this->text_no	;?>	</div></th>
									<th rowspan="1"><?php echo $this->text_image;?></th>
									<th rowspan="1"><?php echo $this->text_name;?></th>
									<th colspan="1" class="a-center"><?php echo $this->text_price;?></th>
									<th class="a-center" rowspan="1"><?php echo $this->text_quan;?></th>
									<th colspan="1" class="a-center"><?php echo $this->text_total;?></th>
								</tr>
							</thead>
							<tfoot style="border-top-color:gray;border-top-style: solid;border-top-width: 1px;">
								<tr class="first last">
									<td class="a-right" colspan="4">
										&nbsp;
									</td>
									<td style="border-top:1px solid #d9dde3 !important;background:white">
										<b><?php echo $this->text_subtotal;?>:</b>
									</td>
									<?php
									$subTotal=0;
									foreach($this->cart as $id=>$qty)
									{
										$cartProduct=0;
										foreach($this->Products as $product)
										{
											if($product["thing_id"]==$id)
											{
												$cartProduct=$product;
												break;
											}
										}
										$subTotal+=$qty*$cartProduct["price"];
									}
									?>
									
									<td style="border-top:1px solid #d9dde3 !important;background:white" class="last">
										<b>$<?php echo number_format($subTotal); ?></b>
									</td>
								</tr>
							</tfoot>
							<tbody>
							<?php 
								$count=0;
								$subTotal=0;
								foreach($this->cart as $id=>$qty)
								{
								$count++;
								$cartProduct=0;
									foreach($this->Products as $product)
									{
										if($product["thing_id"]==$id)
										{
											$cartProduct=$product;
											break;
										}
									}
									$subTotal+=$qty*$cartProduct["price"];
								?>
								<tr class="first odd">
									<td>
											<div style="font-weight:bold; font-size:16px"><?php echo $count ?></div>
											
										</td>
										<td><img src="<?php echo $cartProduct["avatar"]?>" alt="" width="100" height="100" /></td>
										<td class="attributes-col">
											<h4 class="title"><a href="/index/detail?id=<?php echo $id;?>"><?php echo $cartProduct["title"]?></a></h4>
										</td>
										<td class="a-right">
											<div class="cart-price">
												<span class="price"><?php echo "$".number_format($cartProduct["price"]) ?></span>            
											</div>
										</td>
										<td class="a-center">
											<p> <?php echo $qty ?></p>
										</td>
										<td class="a-right ">
											<div class="cart-price">
												<span class="price"><?php echo "$".number_format($qty*$cartProduct["price"]) ?></span>            
											</div>
										</td>
								</tr>            
							<?php }}}}?>  								
							</tbody>
							</table>
							<!--
							<script type="text/javascript">decorateTable('shopping-cart-table')</script>
							-->
						<!-- end table checkout -->
						
					<div class="clear"></div>
					<!-- end content -->
					<div style="height:20px" class="clear"></div>
					<!-- start center -->
					<div style="width:100%" class="col-main" id="main">
					<!-- start global messages -->
											<!-- end global messages -->

					<!-- start content -->
	
					<script type="text/javascript">countryRegions = {"US":{"1":{"code":"AL","name":"Alabama"},"2":{"code":"AK","name":"Alaska"},"3":{"code":"AS","name":"American Samoa"},"4":{"code":"AZ","name":"Arizona"},"5":{"code":"AR","name":"Arkansas"},"6":{"code":"AF","name":"Armed Forces Africa"},"7":{"code":"AA","name":"Armed Forces Americas"},"8":{"code":"AC","name":"Armed Forces Canada"},"9":{"code":"AE","name":"Armed Forces Europe"},"10":{"code":"AM","name":"Armed Forces Middle East"},"11":{"code":"AP","name":"Armed Forces Pacific"},"12":{"code":"CA","name":"California"},"13":{"code":"CO","name":"Colorado"},"14":{"code":"CT","name":"Connecticut"},"15":{"code":"DE","name":"Delaware"},"16":{"code":"DC","name":"District of Columbia"},"17":{"code":"FM","name":"Federated States Of Micronesia"},"18":{"code":"FL","name":"Florida"},"19":{"code":"GA","name":"Georgia"},"20":{"code":"GU","name":"Guam"},"21":{"code":"HI","name":"Hawaii"},"22":{"code":"ID","name":"Idaho"},"23":{"code":"IL","name":"Illinois"},"24":{"code":"IN","name":"Indiana"},"25":{"code":"IA","name":"Iowa"},"26":{"code":"KS","name":"Kansas"},"27":{"code":"KY","name":"Kentucky"},"28":{"code":"LA","name":"Louisiana"},"29":{"code":"ME","name":"Maine"},"30":{"code":"MH","name":"Marshall Islands"},"31":{"code":"MD","name":"Maryland"},"32":{"code":"MA","name":"Massachusetts"},"33":{"code":"MI","name":"Michigan"},"34":{"code":"MN","name":"Minnesota"},"35":{"code":"MS","name":"Mississippi"},"36":{"code":"MO","name":"Missouri"},"37":{"code":"MT","name":"Montana"},"38":{"code":"NE","name":"Nebraska"},"39":{"code":"NV","name":"Nevada"},"40":{"code":"NH","name":"New Hampshire"},"41":{"code":"NJ","name":"New Jersey"},"42":{"code":"NM","name":"New Mexico"},"43":{"code":"NY","name":"New York"},"44":{"code":"NC","name":"North Carolina"},"45":{"code":"ND","name":"North Dakota"},"46":{"code":"MP","name":"Northern Mariana Islands"},"47":{"code":"OH","name":"Ohio"},"48":{"code":"OK","name":"Oklahoma"},"49":{"code":"OR","name":"Oregon"},"50":{"code":"PW","name":"Palau"},"51":{"code":"PA","name":"Pennsylvania"},"52":{"code":"PR","name":"Puerto Rico"},"53":{"code":"RI","name":"Rhode Island"},"54":{"code":"SC","name":"South Carolina"},"55":{"code":"SD","name":"South Dakota"},"56":{"code":"TN","name":"Tennessee"},"57":{"code":"TX","name":"Texas"},"58":{"code":"UT","name":"Utah"},"59":{"code":"VT","name":"Vermont"},"60":{"code":"VI","name":"Virgin Islands"},"61":{"code":"VA","name":"Virginia"},"62":{"code":"WA","name":"Washington"},"63":{"code":"WV","name":"West Virginia"},"64":{"code":"WI","name":"Wisconsin"},"65":{"code":"WY","name":"Wyoming"}},"CA":{"66":{"code":"AB","name":"Alberta"},"67":{"code":"BC","name":"British Columbia"},"68":{"code":"MB","name":"Manitoba"},"69":{"code":"NL","name":"Newfoundland and Labrador"},"70":{"code":"NB","name":"New Brunswick"},"71":{"code":"NS","name":"Nova Scotia"},"72":{"code":"NT","name":"Northwest Territories"},"73":{"code":"NU","name":"Nunavut"},"74":{"code":"ON","name":"Ontario"},"75":{"code":"PE","name":"Prince Edward Island"},"76":{"code":"QC","name":"Quebec"},"77":{"code":"SK","name":"Saskatchewan"},"78":{"code":"YT","name":"Yukon Territory"}},"DE":{"79":{"code":"NDS","name":"Niedersachsen"},"80":{"code":"BAW","name":"Baden-W\u00fcrttemberg"},"81":{"code":"BAY","name":"Bayern"},"82":{"code":"BER","name":"Berlin"},"83":{"code":"BRG","name":"Brandenburg"},"84":{"code":"BRE","name":"Bremen"},"85":{"code":"HAM","name":"Hamburg"},"86":{"code":"HES","name":"Hessen"},"87":{"code":"MEC","name":"Mecklenburg-Vorpommern"},"88":{"code":"NRW","name":"Nordrhein-Westfalen"},"89":{"code":"RHE","name":"Rheinland-Pfalz"},"90":{"code":"SAR","name":"Saarland"},"91":{"code":"SAS","name":"Sachsen"},"92":{"code":"SAC","name":"Sachsen-Anhalt"},"93":{"code":"SCN","name":"Schleswig-Holstein"},"94":{"code":"THE","name":"Th\u00fcringen"}},"AT":{"95":{"code":"WI","name":"Wien"},"96":{"code":"NO","name":"Nieder\u00f6sterreich"},"97":{"code":"OO","name":"Ober\u00f6sterreich"},"98":{"code":"SB","name":"Salzburg"},"99":{"code":"KN","name":"K\u00e4rnten"},"100":{"code":"ST","name":"Steiermark"},"101":{"code":"TI","name":"Tirol"},"102":{"code":"BL","name":"Burgenland"},"103":{"code":"VB","name":"Voralberg"}},"CH":{"104":{"code":"AG","name":"Aargau"},"105":{"code":"AI","name":"Appenzell Innerrhoden"},"106":{"code":"AR","name":"Appenzell Ausserrhoden"},"107":{"code":"BE","name":"Bern"},"108":{"code":"BL","name":"Basel-Landschaft"},"109":{"code":"BS","name":"Basel-Stadt"},"110":{"code":"FR","name":"Freiburg"},"111":{"code":"GE","name":"Genf"},"112":{"code":"GL","name":"Glarus"},"113":{"code":"GR","name":"Graub\u00fcnden"},"114":{"code":"JU","name":"Jura"},"115":{"code":"LU","name":"Luzern"},"116":{"code":"NE","name":"Neuenburg"},"117":{"code":"NW","name":"Nidwalden"},"118":{"code":"OW","name":"Obwalden"},"119":{"code":"SG","name":"St. Gallen"},"120":{"code":"SH","name":"Schaffhausen"},"121":{"code":"SO","name":"Solothurn"},"122":{"code":"SZ","name":"Schwyz"},"123":{"code":"TG","name":"Thurgau"},"124":{"code":"TI","name":"Tessin"},"125":{"code":"UR","name":"Uri"},"126":{"code":"VD","name":"Waadt"},"127":{"code":"VS","name":"Wallis"},"128":{"code":"ZG","name":"Zug"},"129":{"code":"ZH","name":"Z\u00fcrich"}},"ES":{"130":{"code":"A Coru\u0441a","name":"A Coru\u00f1a"},"131":{"code":"Alava","name":"Alava"},"132":{"code":"Albacete","name":"Albacete"},"133":{"code":"Alicante","name":"Alicante"},"134":{"code":"Almeria","name":"Almeria"},"135":{"code":"Asturias","name":"Asturias"},"136":{"code":"Avila","name":"Avila"},"137":{"code":"Badajoz","name":"Badajoz"},"138":{"code":"Baleares","name":"Baleares"},"139":{"code":"Barcelona","name":"Barcelona"},"140":{"code":"Burgos","name":"Burgos"},"141":{"code":"Caceres","name":"Caceres"},"142":{"code":"Cadiz","name":"Cadiz"},"143":{"code":"Cantabria","name":"Cantabria"},"144":{"code":"Castellon","name":"Castellon"},"145":{"code":"Ceuta","name":"Ceuta"},"146":{"code":"Ciudad Real","name":"Ciudad Real"},"147":{"code":"Cordoba","name":"Cordoba"},"148":{"code":"Cuenca","name":"Cuenca"},"149":{"code":"Girona","name":"Girona"},"150":{"code":"Granada","name":"Granada"},"151":{"code":"Guadalajara","name":"Guadalajara"},"152":{"code":"Guipuzcoa","name":"Guipuzcoa"},"153":{"code":"Huelva","name":"Huelva"},"154":{"code":"Huesca","name":"Huesca"},"155":{"code":"Jaen","name":"Jaen"},"156":{"code":"La Rioja","name":"La Rioja"},"157":{"code":"Las Palmas","name":"Las Palmas"},"158":{"code":"Leon","name":"Leon"},"159":{"code":"Lleida","name":"Lleida"},"160":{"code":"Lugo","name":"Lugo"},"161":{"code":"Madrid","name":"Madrid"},"162":{"code":"Malaga","name":"Malaga"},"163":{"code":"Melilla","name":"Melilla"},"164":{"code":"Murcia","name":"Murcia"},"165":{"code":"Navarra","name":"Navarra"},"166":{"code":"Ourense","name":"Ourense"},"167":{"code":"Palencia","name":"Palencia"},"168":{"code":"Pontevedra","name":"Pontevedra"},"169":{"code":"Salamanca","name":"Salamanca"},"170":{"code":"Santa Cruz de Tenerife","name":"Santa Cruz de Tenerife"},"171":{"code":"Segovia","name":"Segovia"},"172":{"code":"Sevilla","name":"Sevilla"},"173":{"code":"Soria","name":"Soria"},"174":{"code":"Tarragona","name":"Tarragona"},"175":{"code":"Teruel","name":"Teruel"},"176":{"code":"Toledo","name":"Toledo"},"177":{"code":"Valencia","name":"Valencia"},"178":{"code":"Valladolid","name":"Valladolid"},"179":{"code":"Vizcaya","name":"Vizcaya"},"180":{"code":"Zamora","name":"Zamora"},"181":{"code":"Zaragoza","name":"Zaragoza"}},"FR":{"182":{"code":"01","name":"Ain"},"183":{"code":"02","name":"Aisne"},"184":{"code":"03","name":"Allier"},"185":{"code":"04","name":"Alpes-de-Haute-Provence"},"186":{"code":"05","name":"Hautes-Alpes"},"187":{"code":"06","name":"Alpes-Maritimes"},"188":{"code":"07","name":"Ard\u00e8che"},"189":{"code":"08","name":"Ardennes"},"190":{"code":"09","name":"Ari\u00e8ge"},"191":{"code":"10","name":"Aube"},"192":{"code":"11","name":"Aude"},"193":{"code":"12","name":"Aveyron"},"194":{"code":"13","name":"Bouches-du-Rh\u00f4ne"},"195":{"code":"14","name":"Calvados"},"196":{"code":"15","name":"Cantal"},"197":{"code":"16","name":"Charente"},"198":{"code":"17","name":"Charente-Maritime"},"199":{"code":"18","name":"Cher"},"200":{"code":"19","name":"Corr\u00e8ze"},"201":{"code":"2A","name":"Corse-du-Sud"},"202":{"code":"2B","name":"Haute-Corse"},"203":{"code":"21","name":"C\u00f4te-d'Or"},"204":{"code":"22","name":"C\u00f4tes-d'Armor"},"205":{"code":"23","name":"Creuse"},"206":{"code":"24","name":"Dordogne"},"207":{"code":"25","name":"Doubs"},"208":{"code":"26","name":"Dr\u00f4me"},"209":{"code":"27","name":"Eure"},"210":{"code":"28","name":"Eure-et-Loir"},"211":{"code":"29","name":"Finist\u00e8re"},"212":{"code":"30","name":"Gard"},"213":{"code":"31","name":"Haute-Garonne"},"214":{"code":"32","name":"Gers"},"215":{"code":"33","name":"Gironde"},"216":{"code":"34","name":"H\u00e9rault"},"217":{"code":"35","name":"Ille-et-Vilaine"},"218":{"code":"36","name":"Indre"},"219":{"code":"37","name":"Indre-et-Loire"},"220":{"code":"38","name":"Is\u00e8re"},"221":{"code":"39","name":"Jura"},"222":{"code":"40","name":"Landes"},"223":{"code":"41","name":"Loir-et-Cher"},"224":{"code":"42","name":"Loire"},"225":{"code":"43","name":"Haute-Loire"},"226":{"code":"44","name":"Loire-Atlantique"},"227":{"code":"45","name":"Loiret"},"228":{"code":"46","name":"Lot"},"229":{"code":"47","name":"Lot-et-Garonne"},"230":{"code":"48","name":"Loz\u00e8re"},"231":{"code":"49","name":"Maine-et-Loire"},"232":{"code":"50","name":"Manche"},"233":{"code":"51","name":"Marne"},"234":{"code":"52","name":"Haute-Marne"},"235":{"code":"53","name":"Mayenne"},"236":{"code":"54","name":"Meurthe-et-Moselle"},"237":{"code":"55","name":"Meuse"},"238":{"code":"56","name":"Morbihan"},"239":{"code":"57","name":"Moselle"},"240":{"code":"58","name":"Ni\u00e8vre"},"241":{"code":"59","name":"Nord"},"242":{"code":"60","name":"Oise"},"243":{"code":"61","name":"Orne"},"244":{"code":"62","name":"Pas-de-Calais"},"245":{"code":"63","name":"Puy-de-D\u00f4me"},"246":{"code":"64","name":"Pyr\u00e9n\u00e9es-Atlantiques"},"247":{"code":"65","name":"Hautes-Pyr\u00e9n\u00e9es"},"248":{"code":"66","name":"Pyr\u00e9n\u00e9es-Orientales"},"249":{"code":"67","name":"Bas-Rhin"},"250":{"code":"68","name":"Haut-Rhin"},"251":{"code":"69","name":"Rh\u00f4ne"},"252":{"code":"70","name":"Haute-Sa\u00f4ne"},"253":{"code":"71","name":"Sa\u00f4ne-et-Loire"},"254":{"code":"72","name":"Sarthe"},"255":{"code":"73","name":"Savoie"},"256":{"code":"74","name":"Haute-Savoie"},"257":{"code":"75","name":"Paris"},"258":{"code":"76","name":"Seine-Maritime"},"259":{"code":"77","name":"Seine-et-Marne"},"260":{"code":"78","name":"Yvelines"},"261":{"code":"79","name":"Deux-S\u00e8vres"},"262":{"code":"80","name":"Somme"},"263":{"code":"81","name":"Tarn"},"264":{"code":"82","name":"Tarn-et-Garonne"},"265":{"code":"83","name":"Var"},"266":{"code":"84","name":"Vaucluse"},"267":{"code":"85","name":"Vend\u00e9e"},"268":{"code":"86","name":"Vienne"},"269":{"code":"87","name":"Haute-Vienne"},"270":{"code":"88","name":"Vosges"},"271":{"code":"89","name":"Yonne"},"272":{"code":"90","name":"Territoire-de-Belfort"},"273":{"code":"91","name":"Essonne"},"274":{"code":"92","name":"Hauts-de-Seine"},"275":{"code":"93","name":"Seine-Saint-Denis"},"276":{"code":"94","name":"Val-de-Marne"},"277":{"code":"95","name":"Val-d'Oise"}},"RO":{"278":{"code":"AB","name":"Alba"},"279":{"code":"AR","name":"Arad"},"280":{"code":"AG","name":"Arge\u015f"},"281":{"code":"BC","name":"Bac\u0103u"},"282":{"code":"BH","name":"Bihor"},"283":{"code":"BN","name":"Bistri\u0163a-N\u0103s\u0103ud"},"284":{"code":"BT","name":"Boto\u015fani"},"285":{"code":"BV","name":"Bra\u015fov"},"286":{"code":"BR","name":"Br\u0103ila"},"287":{"code":"B","name":"Bucure\u015fti"},"288":{"code":"BZ","name":"Buz\u0103u"},"289":{"code":"CS","name":"Cara\u015f-Severin"},"290":{"code":"CL","name":"C\u0103l\u0103ra\u015fi"},"291":{"code":"CJ","name":"Cluj"},"292":{"code":"CT","name":"Constan\u0163a"},"293":{"code":"CV","name":"Covasna"},"294":{"code":"DB","name":"D\u00e2mbovi\u0163a"},"295":{"code":"DJ","name":"Dolj"},"296":{"code":"GL","name":"Gala\u0163i"},"297":{"code":"GR","name":"Giurgiu"},"298":{"code":"GJ","name":"Gorj"},"299":{"code":"HR","name":"Harghita"},"300":{"code":"HD","name":"Hunedoara"},"301":{"code":"IL","name":"Ialomi\u0163a"},"302":{"code":"IS","name":"Ia\u015fi"},"303":{"code":"IF","name":"Ilfov"},"304":{"code":"MM","name":"Maramure\u015f"},"305":{"code":"MH","name":"Mehedin\u0163i"},"306":{"code":"MS","name":"Mure\u015f"},"307":{"code":"NT","name":"Neam\u0163"},"308":{"code":"OT","name":"Olt"},"309":{"code":"PH","name":"Prahova"},"310":{"code":"SM","name":"Satu-Mare"},"311":{"code":"SJ","name":"S\u0103laj"},"312":{"code":"SB","name":"Sibiu"},"313":{"code":"SV","name":"Suceava"},"314":{"code":"TR","name":"Teleorman"},"315":{"code":"TM","name":"Timi\u015f"},"316":{"code":"TL","name":"Tulcea"},"317":{"code":"VS","name":"Vaslui"},"318":{"code":"VL","name":"V\u00e2lcea"},"319":{"code":"VN","name":"Vrancea"}}}</script>

					<ol class="one-page-checkout" id="checkoutSteps">
						<li style="border:gray 1px solid;" class="section allow active" id="opc-billing">
						<?php if(isset($_SESSION['payment_info'])) {?>
							<div class="head">
								<h3><?php echo $this->check_1_order;?> </h3> <a href="/cart/payment?step=1#order_info"><?php echo $this->change;?></a>
							</div>
							<div style="" class="box a-item" id="checkout-step-billing">
									<fieldset class="">
										<ul class="form-list">
											<li id="billing-new-address-form">
												<fieldset class="">
													<ul>
														<li class="fields">
														<div class="customer-name">
															<div class="field name-firstname">
																<label class="required" for="billing:firstname"><?php echo $this->check_name;?>:</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_name'];?>
																</div>
															</div>
														</div>
														<div class="field">
																<label class="required" for="billing:email">Email :</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_email'];?>
																</div>
															</div>
													</li>
													<li class="wide">
														<label class="required" for="billing:street1"><?php echo $this->check_add;?>:</label><br>
														<div class="label">
															<?php echo $_SESSION['payment_info']['ord_address'];?>
														</div>
													</li>
													<li class="fields">
														<div class="field">
																<label class="required" for="billing:city"><?php echo $this->check_Sex;?>:</label><br>
																<div class="label">
																	<?php if($_SESSION['payment_info']['ord_gender']==1) { echo $this->check_male;} else {  echo $this->check_female; }?>
																</div>
															</div>
															<div class="field">
																<label class="required" for="billing:telephone"><?php echo $this->check_phone;?>:</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_phone'];?>
																</div>
															</div>
													</li>
													<li class="fields">
														<div class="field">
																<label for="billing:yahoo">Yahoo</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_phone'];?>
																</div>
															</div>
															<div class="field">
																<label for="billing:Skype">Skype</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_skype'];?>
																</div>
															</div>
															<div class="field">
																<label for="billing:note"><?php echo $this->check_note;?>:</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_note'];?>
																</div>
															</div>
													</li>
													</ul>
												</fieldset>
											</li>
										</ul>
									</fieldset>
							</div>
							<?php } ?>
						</li>
						<li style="border:gray 1px solid;margin-top:15px" class="section" id="opc-shipping">
							<div class="head">
								<h3><?php echo $this->check_1_receiver;?></h3><a href="/cart/payment?step=1#rec_info"><?php echo $this->change;?></a>
							</div>
							<div class="box a-item" id="checkout-step-shipping">
									<ul class="form-list">
										<li id="shipping-new-address-form">
											<fieldset>
												<ul>
													<li class="fields">
														<div class="customer-name">
															<div class="field name-firstname">
																<label class="required" for="shipping:firstname"><?php echo $this->check_name;?>:</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_sname'];?>
																</div>
															</div>
														</div>
														<div class="field">
																<label class="required" for="shipping:email">Email:</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_semail'];?>
																</div>
															</div>
													</li>
													<li class="wide">
														<label class="required" for="shipping:street1"><?php echo $this->check_add;?>:</label><br>
														<div class="label">
														<?php echo $_SESSION['payment_info']['ord_saddress'];?>
														</div>
													</li>
													<li class="fields">
														<div class="field">
																<label class="required" for="shipping:city"><?php echo $this->check_Sex;?>:</label><br>
																<div class="label">
																	<?php if($_SESSION['payment_info']['ord_sgender']==1) { echo $this->check_male;} else {  echo $this->check_female; }?>
																</div>
															</div>
															<div class="field">
																<label class="required" for="shipping:telephone"><?php echo $this->check_phone;?>:</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_sphone'];?>
																</div>
															</div>
													</li>
													<li class="fields">
														<div class="field">
																<label for="shipping:yahoo">Yahoo</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_syahoo'];?>
																</div>
															</div>
															<div class="field">
																<label for="shipping:Skype">Skype</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_sskype'];?>
																</div>
															</div>
															<div class="field">
																<label for="shipping:Skype"><?php echo $this->check_note;?>:</label><br>
																<div class="label">
																	<?php echo $_SESSION['payment_info']['ord_snote'];?>
																</div>
															</div>
													</li>
												</ul>
											</fieldset>
										</li>
									</ul>
							</div>
						</li>
						<li style="border:gray 1px solid;margin-top:15px" class="section" id="opc-shipping_method">
							<div class="head">
								<h3><?php echo $this->check_pay;?></h3><a href="/cart/payment?step=1#pay_info"><?php echo $this->change;?></a>
							</div>
							<div class="box a-item" id="checkout-step-shipping_method">
									<fieldset>
										<div style="float:left;width:auto;text-align:right;margin-left:60px;font-size:13px;">
											<?php echo $this->pay;?>:<br>
											<?php echo $this->trans;?>:<br>
											<?php echo $this->check_1_re_time;?>:<br>
										</div>
										<div style="width:auto;float:left;text-align:left;font-size:13px;margin-left:10px;color:#787878;">
											<?php if(isset($this->payment) && $this->payment!=null) { ?>
											<?php foreach($this->payment as $pay) { 
											if($pay['payment_id']==$_SESSION['payment_info']['pay'])
												echo $pay['payment_name'];
											 }}?>	 <br>
											<?php if(isset($this->shipping) && $this->shipping!=null) { ?>
											<?php foreach($this->shipping as $ship) { 
											if($ship['shipping_id']==$_SESSION['payment_info']['ship'])
												echo $ship['shipping_name'];
											 }}?>		<br>
											<?php echo $_SESSION['payment_info']['gio'];?>:<?php echo $_SESSION['payment_info']['phut'];?> <?php echo $_SESSION['payment_info']['ngay'];?>/<?php echo $_SESSION['payment_info']['thang'];?>/<?php echo $_SESSION['payment_info']['nam'];?><br>
										</div>
										<div style="margin:0px;padding:0px" id="checkout-review-submit">
									<div style="clear:both"></div>
									<div style="margin:0px;padding:10px;" id="review-buttons-container" class="buttons-set">
										<input type="hidden" id="sendorder" name="sendorder" value="1">
										<button style="margin-right:70px" class="button btn-checkout" type="submit"><span><span><?php echo $this->order;?></span></span></button>
										<button onclick="javascript:window.location='/cart/payment?step=1'" class="button btn-checkout" ><span><span><?php echo $this->return;?></span></span></button>
									</div>
									</div>
									</fieldset>
							</div>
						</li>
						
				</ol>&nbsp;
					<!-- end content -->
					</div>
					<!-- end center -->

					
				</div>
				</form>
				<?php }else{?>
						<div class="col-main" id="main">
					<!-- start content -->
					<div class="page-head-alt button-level">
							<h3><?php echo $this->text_title;?></h3>
						</div>
						<form method="post" action="#link update">
							<table cellspacing="0" border="0" class="data-table box-table shopping-cart" id="shopping-cart-table">
							<colgroup>
								<col width="40">
								<col width="75">
								<col>
								<col width="80">
								<col width="1">
								<col width="80">
							</colgroup>
							<?php
							$subTotal=0;
							if(isset($this->cart))
							{
								if($this->cart==0)
								{
								?>
									<tr class="cart_content"><td align="center" valign="center" colspan="7"><?php echo $this->text_empty;?></td></tr>
								<?php
								} else	{ 
									if(is_array($this->cart))
									{ ?> 
							<thead>
								<tr class="first last">
									<th rowspan="1"><div><?php echo $this->text_no	;?>	</div></th>
									<th rowspan="1"><?php echo $this->text_image;?></th>
									<th rowspan="1"><?php echo $this->text_name;?></th>
									<th colspan="1" class="a-center"><?php echo $this->text_price;?></th>
									<th class="a-center" rowspan="1"><?php echo $this->text_quan;?></th>
									<th colspan="1" class="a-center"><?php echo $this->text_total;?></th>

								</tr>
							</thead>
							<tfoot style="border-top-color:gray;border-top-style: solid;border-top-width: 1px;">
								<tr class="first last">
									<td class="a-right" colspan="4">
										&nbsp;
									</td>
									<td style="border-top:1px solid #d9dde3 !important;background:white">
										<b><?php echo $this->text_subtotal;?>:</b>
									</td>
									<?php
									$subTotal=0;
									foreach($this->cart as $id=>$qty)
									{
										$cartProduct=0;
										
										foreach($this->Products as $product)
										{
											if($product["thing_id"]==$id)
											{
												$cartProduct=$product;
												break;
											}
										}
										$subTotal+=$qty*$cartProduct["price"];
									}
									?>
									<td style="border-top:1px solid #d9dde3 !important;background:white" class="last">
										<b>$<?php echo number_format($subTotal); ?></b>
									</td>
								</tr>
							</tfoot>
							<tbody>
							<?php 
								$count=0;
								$subTotal=0;
								foreach($this->cart as $id=>$qty)
								{
								$count++;
								$cartProduct=0;
									foreach($this->Products as $product)
									{
										if($product["thing_id"]==$id)
										{
											$cartProduct=$product;
											break;
										}
									}
									$subTotal+=$qty*$cartProduct["price"];
								?>
								<tr class="first odd">
									<td>
											<div style="font-weight:bold; font-size:16px"><?php echo $count ?></div>
											
										</td>
										<td><img src="<?php echo $cartProduct["avatar"]?>" alt="" width="100" height="100" /></td>
										<td class="attributes-col">
											<h4 class="title"><a href="/index/detail?id=<?php echo $id;?>"><?php echo $cartProduct["title"]?></a></h4>
										</td>
										<td class="a-right">
											<div class="cart-price">
												<span class="price"><?php echo "$".number_format($cartProduct["price"]) ?></span>            
											</div>
										</td>
										<td class="a-center">
											<p> <?php echo $qty ?></p>
										</td>
										<td class="a-right ">
											<div class="cart-price">
												<span class="price"><?php echo "$".number_format($qty*$cartProduct["price"]) ?></span>            
											</div>
										</td>
								</tr>            
							<?php }}}}?>  								
							</tbody>
							</table>
							<!--
							<script type="text/javascript">decorateTable('shopping-cart-table')</script>
							-->
						</form>
						<div style="clear:both; height:20px;"></div>
						<!-- end table checkout -->
	
					<ol class="one-page-checkout" id="checkoutSteps">
						<li class="section allow active" id="opc-billing">
						<form onsubmit="checkForm(this.name, <?php echo $this->text_arrCtrlLang	;?>); return false;" enctype="multipart/form-data" method="post" action="/cart/payment?step=2" name="payment" class="form">
							<div class="head">
								<h3> <?php echo $this->check_1_order	;?></h3>
							</div>
							<?php if(isset($this->order_user)) {?>
							<div style="" class="box a-item" id="checkout-step-billing">
									<fieldset class="">
										<ul class="form-list">
											<li id="billing-new-address-form">
												<fieldset class="">
													<ul>
														<li class="fields">
															<div class="customer-name">
																<div class="field name-firstname">
																	<label class="required" for="billing:firstname"><em>*</em><?php echo $this->check_name	;?>:</label>
																	<div class="input-box">
																		<input type="text" readonly="readonly" value = "<?php echo $this->order_user['user_name'];?>" class="input-text required-entry validation-passed" title="First Name" name="ord_name" id="ord_name">
																	</div>
																</div>
															</div>
															<div class="field">
																<label class="required" for="billing:email"><em>*</em>Email Address</label>
																<div class="input-box">
																	<input readonly="readonly" value="<?php echo $this->order_user['email'];?>" type="text" class="input-text validate-email required-entry validation-passed" title="Email Address" id="ord_email" name="ord_email">
																</div>
															</div>
														</li>
														<li class="wide">
															<label class="required" for="billing:street1"><em>*</em><?php echo $this->check_add	;?>:</label>
															<div class="input-box">
																<input readonly="readonly" value="<?php echo $this->order_user['address'];?>" type="text" class="input-text required-entry validation-passed" id="ord_address" name="ord_address" title="Street Address">
															</div>
														</li>
														
														<li class="fields">
															<div class="field">
																<label class="required" for="billing:city"><em>*</em><?php echo $this->check_Sex	;?>:</label>
																<div class="input-box">
																	<select disabled="disabled" type="text" id="billing:city" class="input-text required-entry validation-passed" name="ord_genders">
																		<?php if($this->order_user['sex']==1) {?>
																		<option value="1" selected="selected"><?php echo $this->check_male	;?></option>
																		<option value="0"><?php echo $this->check_female	;?></option>
																		<?php } else {?>
																		<option value="1"><?php echo $this->check_male	;?></option>
																		<option value="0" selected="selected"><?php echo $this->check_female	;?></option>
																		<?php }?>
																	</select>
														
																</div>
															</div>
															<div class="field">
																<label class="required" for="billing:telephone"><em>*</em><?php echo $this->check_phone;?>:</label>
																<div class="input-box">
																	<input readonly="readonly" value="<?php echo $this->order_user['phone'];?>" type="text" id="ord_phone" class="input-text required-entry validation-passed" title="Telephone" name="ord_phone">
																</div>
															</div>
														</li>
														<li lang="fields">
															<div class="field">
																<label for="billing:yahoo">Yahoo</label>
																<div class="input-box">
																	<input  readonly="readonly" value="<?php echo $this->order_user['yahoo'];?>" type="text" id="ord_yahoo" class="input-text required-entry validation-passed" title="Yahoo" name="ord_yahoo">
																</div>
															</div>
															<div class="field">
																<label for="billing:Skype">Skype</label>
																<div class="input-box">
																	<input readonly="readonly" value="<?php echo $this->order_user['skype'];?>" type="text" id="ord_skype" class="input-text validation-passed" title="Skype" name="ord_skype">
																</div>
															</div>
															<div class="field">
															
																<label for="billing:note"><?php echo $this->check_note;?>:</label>
																
																<div class="input-box">
																	<textarea type="text" id="ord_note" class="input-text validation-passed"  name="ord_note"><?php if(isset($this->order_user['note'])){ echo $this->order_user['note'];}?></textarea>
																</div>
															</div>
														</li>
													</ul>
												</fieldset>
											</li>
										</ul>
										
										<div id="billing-buttons-container" class="buttons-set">
											<p class="required">* <?php echo $this->check_1_require	;?></p>
									
										</div>
									</fieldset>
							</div>
							<?php  } ?>
						</li>
						<li class="section" id="opc-shipping">
							<div class="head">
								<h3><?php echo $this->check_1_receiver	;?>
							</div>
							<div class="box a-item" id="checkout-step-shipping">
									<ul class="form-list">
										<li id="shipping-new-address-form">
											<fieldset>
												<ul>
													<li class="fields">
														<div class="customer-name">
															<div class="field name-firstname">
																<label class="required" for="shipping:firstname"><em>*</em><?php echo $this->check_name	;?></label>
																<div class="input-box">
																	<input type="text" maxlength="50" class="input-text required-entry" value="<?php echo $this->currentrecieve['user_name'];?>" title="First Name" name="ord_sname" id="ord_sname">
																</div>
															</div>
														</div>
														<div class="field">
																<label class="required" for="shipping:email"><em>*</em>Email</label>
																<div class="input-box">
																	<input maxlength="50"  value="<?php echo $this->currentrecieve['email'];?>" type="text" class="input-text validate-email required-entry validation-passed"  id="ord_semail" name="ord_semail">
																</div>
															</div>
													</li>
													<li class="wide">
														<label class="required" for="shipping:street1"><em>*</em><?php echo $this->check_add	;?>:</label>
														<div class="input-box">
															<input  value="<?php echo $this->currentrecieve['address'];?>" type="text" onchange="shipping.setSameAsBilling(false);" class="input-text required-entry" id="ord_saddress" name="ord_saddress" >
														</div>
													</li>
													<li class="fields">
														<div class="field">
																<label class="required" for="shipping:city"><em>*</em><?php echo $this->check_Sex	;?>:</label>
																<div class="input-box">
																	<select type="text" id="ord_sgender" class="input-text required-entry validation-passed" name="ord_sgender">
																		<?php if($this->currentrecieve['sex']==1) {?>
																		<option value="1" selected="selected"><?php echo $this->check_male	;?></option>
																		<option value="0"><?php echo $this->check_female	;?></option>
																		<?php } else {?>
																		<option value="1"><?php echo $this->check_male	;?></option>
																		<option value="0" selected="selected"><?php echo $this->check_female	;?></option>
																		<?php }?>
																	</select>
																	
																</div>
															</div>
															<div class="field">
																<label class="required" for="shipping:telephone"><em>*</em><?php echo $this->check_phone;?>:</label>
																<div class="input-box">
																	<input maxlength="20" value="<?php echo $this->currentrecieve['phone'];?>" type="text" id="ord_sphone" class="input-text required-entry validation-passed" name="ord_sphone">
																</div>
															</div>
													</li>
													<li class="fields">
														<div class="field">
																<label for="shipping:yahoo">Yahoo</label>
																<div class="input-box">
																	<input maxlength="50" value="<?php echo $this->currentrecieve['yahoo'];?>" type="text" id="ord_syahoo" class="input-text required-entry validation-passed" name="ord_syahoo">
																</div>
															</div>
															<div class="field">
																<label for="shipping:Skype">Skype</label>
																<div class="input-box">
																	<input maxlength="50" value="<?php echo $this->currentrecieve['skype'];?>" type="text" id="ord_sskype" class="input-text validation-passed"  name="ord_sskype">
																</div>
															</div>
															<div class="field">
																<label for="billing:note"><?php echo $this->check_note;?>:</label>
																<div class="input-box">
																	<textarea maxlength="200" readonly="readonly"  type="text" id="ord_snote" class="input-text validation-passed"  name="ord_snote"><?php if(isset($this->currentrecieve['note'])){ echo $this->currentrecieve['note'];}?></textarea>
																</div>
															</div>
													</li>
												</ul>
											</fieldset>
										</li>
										<li class="control">
											<input type="checkbox" class="checkbox" onclick="checkSame(this.checked)"  value="1" id="check_same" name="check_same"><label for="shipping:same_as_billing"><?php echo $this->check_same;?></label>
										</li>
									</ul>
									
									<div id="shipping-buttons-container" class="buttons-set">
										<p class="required"><?php echo $this->check_1_require	;?></p>
										
									</div>
							</div>
						</li>
						<li class="section" id="opc-shipping_method">
							<div class="head">
								<h3><?php echo $this->check_1_transport	;?></h3>
							</div>
							<div class="box a-item" id="checkout-step-shipping_method">
									<fieldset>
										<dl id="checkout-payment-method-load" class="sp-methods">
											<?php if(isset($this->shipping) && $this->shipping!=null) {$i=0;?>
											<?php foreach($this->shipping as $ship) {$i++;?>
											<dt>
													<input type="radio" <?php if(isset($this->currentshipping) && $this->currentshipping == $ship['shipping_id'] ){?> checked="checked"<?php }?>  class="radio" name="ship" value="<?php echo $ship['shipping_id'];?>" id="ship_<?php echo $ship['shipping_id'];?>">
													<label for="ship_<?php $ship['shipping_id'];?>"><?php echo $ship['shipping_name'];?> </label>
											</dt>
											<?php }} ?>
										</dl>
									</fieldset>
							</div>
						</li>
						<li class="section" id="opc-payment">
							<div class="head">
								<h3><?php echo $this->check_1_paymethod	;?></h3>
							</div>
							<div style="" class="box a-item" id="checkout-step-payment">
									<fieldset>
										<dl id="checkout-payment-method-load" class="sp-methods">
										<?php if(isset($this->payment) && $this->payment!=null) { $i=0;?>
										<?php foreach($this->payment as $pay) { $i++;?>
											<dt>
													<input <?php if(isset($this->currentpayment) && $this->currentpayment == $pay['payment_id'] ){?> checked="checked"<?php }?>  value="<?php echo $pay['payment_id'];?>" type="radio" class="radio"  name="pay"  id="pay_<?php echo $pay['payment_id'];?>" >
													<label for="p_method_checkmo"><?php echo $pay['payment_name'];?> </label>
											</dt>
										<?php }} ?>
										</dl>
									</fieldset>
							</div>
						</li>
						<li class="section" id="opc-review">
							<div class="head">
								<h3><?php echo $this->check_1_re_time	;?>:</h3>
							</div>
							<div style="" class="box a-item" id="checkout-step-review">
								<div style="border-left:1px solid #e4e4e4;border-right:1px solid #e4e4e4;padding-top:10px" id="checkout-review-load">
									<div style="float:left;width:auto;font-size:13px;margin-left:10px"><?php echo $this->check_1_re_time	;?>:</div>
										<input type="text" value="<?php if(isset($this->currenttime)) echo $this->currenttime['gio'];?>" name="gio" maxlength="2" style="float:left;height:20px;width:30px;margin-left:5px;" id="gio">
										<input type="text" value="<?php if(isset($this->currenttime)) echo $this->currenttime['phut'];?>" name="phut" maxlength="2" style="float:left;height:20px;width:30px;margin-left:5px;" id="phut">
										<select id="ngay" name="ngay" style="width:auto;float:left;margin-left:5px;">
										<?php for($i=1;$i<32;$i++) {?>
										<?php if(isset($this->currenttime)) { if($i==$this->currenttime['ngay']) {?>
										<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
										<?php } else {?>
										<option value="<?php echo $i;?>"><?php echo $i;?></option>
										<?php } } }?>
										</select>
										<select id="thang" name="thang" style="width:auto;float:left;margin-left:5px;">
										<?php for($i=1;$i<13;$i++) {?>
										<?php if(isset($this->currenttime)) { if($i==$this->currenttime['thang']) {?>
										<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
										<?php } else {?>
										<option value="<?php echo $i;?>"><?php echo $i;?></option>
										<?php } } }?>
										</select>
										<select id="nam" name="nam" style="width:auto;float:left;margin-left:5px;">
										<?php for($i=date("Y");$i<(date("Y")+4);$i++) {?>
										<?php if(isset($this->currenttime)) { if($i==$this->currenttime['nam']) {?>
										<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
										<?php } else {?>
										<option value="<?php echo $i;?>"><?php echo $i;?></option>
										<?php }}}?>
										</select>
										<div style="float:left;width:auto;font-size:13px;margin-left:5px;"><?php echo $this->check_1_time_format	;?></div>
										<div style="clear:both"></div>
								</div>
								<div style="margin:0px;padding:0px" id="checkout-review-submit">
									
									<div style="margin:0px;padding:10px" id="review-buttons-container" class="buttons-set">
										
											<button class="button btn-checkout" title="Place Order" type="submit"><span><span><?php echo $this->check_1_btn	;?></span></span></button>
											<?php
												$subTotal1=0;
													foreach($this->cart as $id=>$qty)
													{
														$cartProduct1=0;
														
														foreach($this->Products as $product)
														{
															if($product["thing_id"]==$id)
															{
																$cartProduct1=$product;
																break;
															}
														}
														$subTotal1+=$qty*$cartProduct1["price"];
													}
													?>
											
											<input type="hidden" id="total_price" name ="total_price" value="<?php echo $subTotal1; ?>">
											<input type="hidden" id="ord_gender" name ="ord_gender" value="<?php echo $this->order_user['sex'];?>">
										
									</div>
									</div>
							</div>
							</form>
						</li>
				</ol>&nbsp;
					<!-- end content -->
					</div>	
				<?php }?>
				
			<?php }else if ($_SESSION['config_template']=='layoutmain_web2'){?>
					<link rel="stylesheet" type="text/css" href="/css/faq.css" media="all"/>
					<ol class="one-page-checkout" id="checkoutSteps">
				<?php IF(ISSET($_GET['step']) && $_GET['step']==2) {?>

					<!-- start center -->
					<div id="main" class="col-main">
					<form enctype="multipart/form-data" onsubmit="return checkstep()" method="post" action="/cart/payment" name="payment" id="payment" class="form">
						<li class="section allow active" id="opc-billing">
						<div class="head">
						<h3><span class="step-count">2</span> &nbsp;<?php echo $this->check_out_2;?></h3>
						</div>
						<div style="" class="box a-item" id="checkout-step-2">
							<!--Checkout items-->
							<table cellspacing="0" border="0" class="data-table box-table shopping-cart" id="shopping-cart-table">
								<colgroup>
									<col width="15">
									<col width="75">
									<col>
									<col width="80">
									<col width="1">
									<col width="80">
								</colgroup>
								
								<thead>
									<tr class="first last">
										<th class="a-center"><?php echo $this->text_no	;?></th>
										<th class="a-center" rowspan="1"><?php echo $this->text_image	;?></th>
										<th rowspan="1"><?php echo $this->text_name	;?></th>
										<th colspan="1" class="a-center"><?php echo $this->text_price	;?></th>
										<th class="a-center" rowspan="1"><?php echo $this->text_quan	;?></th>
										<th colspan="1" class="a-center"><?php echo $this->text_total	;?></th>
										
									</tr>
								</thead>
								
								<tbody>
									<?php
									$subTotal=0;
									if(isset($this->cart))
									{
										if($this->cart==0)
										{
								?>
									<tr class="cart_content"><td align="center" valign="center" colspan="7"><?php echo $this->text_empty	;?></td></tr>
								<?php
										} else
										{
											if(is_array($this->cart))
											{
												$count=0;
												foreach($this->cart as $id=>$qty)
												{
												$count++;
												$cartProduct=0;
													foreach($this->Products as $product)
													{
														if($product["thing_id"]==$id)
														{
															$cartProduct=$product;
															break;
														}
													}
								?>
													<tr class="first even">
														<td class="a-center"><?php echo $count ?></td>
														<td><img height="75" width="75" alt="Computer" src="<?php echo $cartProduct["avatar"]?>"></td>
														<td>
															<h2 class="product-name">
																<a href="<a href="/index/detail?id=<?php echo $id;?>"><?php echo $cartProduct["title"]?></a>
															</h2>
															
														</td>
														<td class="a-right">
															<span class="cart-price">
																<span class="price"><?php echo "$".number_format($cartProduct["price"]) ?></span>            
															</span>
														</td>
														<td class="a-center">
															<?php echo $qty ?>
														</td>
														<td class="a-right last">
															<span class="cart-price">
																<span class="price"><?php echo "$".number_format($qty*$cartProduct["price"]) ?></span>            
															</span>
														</td>
													</tr>
													<?php
													$subTotal+=$qty*$cartProduct["price"];
												}
								?>
								<?php
											}
										}
									}
								?>									
													<tr class="first last odd">
														<td colspan="5" style="text-align:right; font-size:15px;font-weight:bold">
															<?php echo $this->text_subtotal;?>:
														</td>
														<td>
															<b style="color:red"><?php echo "$".number_format($subTotal) ?></b>
														</td>
													</tr>
												</tbody>
											</table>
											<!--
											<script type="text/javascript">decorateTable('shopping-cart-table')</script>
											-->
							<div style="clear:both; height:20px;"></div>
							<!--end Checkout items-->
							
							<?php if(isset($_SESSION['payment_info'])) {?>							
							<fieldset style="margin-left: auto;	margin-right: auto;	width:100%;border-style: solid;	border-width: 0.1px; border-color:#E8E8E8;">
								<div style="background-color:#EEEEEE">
									<b style="margin-left:5px;"><?php echo $this->check_1_order;?></b>
									<a style="float:right;width:100px; margin-right:5px;text-align:right;font-size:12px;text-decoration:underline;" href="/cart/payment?step=1#order_info"><?php echo $this->change;?></a>
								</div>
								<table>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_name;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_name'];?></td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_Sex;?>:</td><td style="padding-left:20px;"><?php if($_SESSION['payment_info']['ord_gender']==1) { echo $this->check_male;} else {  echo $this->check_female; }?></td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_add;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_address'];?></td></tr>
									<tr><td style="width:120px; text-align:right;">Email:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_email'];?></td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_phone;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_phone'];?></td></tr>
									<tr><td style="width:120px; text-align:right;">Yahoo:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_yahoo'];?></td></tr>
									<tr><td style="width:120px; text-align:right;">Skype:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_skype'];?></td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_note;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_note'];?></td></tr>
								</table>
							</fieldset>
							
							<div style="clear:both; height:20px;"></div>
							
							<fieldset style="margin-left: auto;	margin-right: auto;	width:100%;border-style: solid;	border-width: 0.1px; border-color:#E8E8E8;">
								<div style="background-color:#EEEEEE">
									<b style="margin-left:5px;"><?php echo $this->check_1_receiver;?></b>
									<a style="float:right;width:100px; margin-right:5px;text-align:right;font-size:12px;text-decoration:underline;" href="/cart/payment?step=1#rec_info"><?php echo $this->change;?></a>
								</div>
								<table >
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_name;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_sname'];?></td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_Sex;?>:</td><td style="padding-left:20px;"><?php if($_SESSION['payment_info']['ord_sgender']==1) { echo $this->check_male;} else {  echo $this->check_female; }?></td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_add;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_saddress'];?></td></tr>
									<tr><td style="width:120px; text-align:right;">Email:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_semail'];?></td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_phone;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_sphone'];?></td></tr>
									<tr><td style="width:120px; text-align:right;">Yahoo:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_syahoo'];?></td></tr>
									<tr><td style="width:120px; text-align:right;">Skype:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_sskype'];?></td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_note;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['ord_snote'];?></td></tr>
								</table>
							</fieldset>
							
							<div style="clear:both; height:20px;"></div>
														
							<fieldset style="margin-left: auto;	margin-right: auto;	width:100%;border-style: solid;	border-width: 0.1px; border-color:#E8E8E8;">
								<div style="background-color:#EEEEEE">
									<b style="margin-left:5px;"><?php echo $this->check_pay;?></b>
									<a style="float:right;width:100px; margin-right:5px;text-align:right;font-size:12px;text-decoration:underline;" href="/cart/payment?step=1#pay_info"><?php echo $this->change;?></a>
								</div>
								<table >
									<tr><td style="width:120px; text-align:right;"><?php echo $this->pay;?>:</td><td style="padding-left:20px;">
										<?php if(isset($this->payment) && $this->payment!=null) { ?>
										<?php foreach($this->payment as $pay) { 
										if($pay['payment_id']==$_SESSION['payment_info']['pay'])
											echo $pay['payment_name'];
										 }}?>
									</td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->trans;?>:</td><td style="padding-left:20px;">
										<?php if(isset($this->shipping) && $this->shipping!=null) { ?>
										<?php foreach($this->shipping as $ship) { 
										if($ship['shipping_id']==$_SESSION['payment_info']['ship'])
											echo $ship['shipping_name'];
										 }}?>
									</td></tr>
									<tr><td style="width:120px; text-align:right;"><?php echo $this->check_1_re_time;?>:</td><td style="padding-left:20px;"><?php echo $_SESSION['payment_info']['gio'];?>:<?php echo $_SESSION['payment_info']['phut'];?> <?php echo $_SESSION['payment_info']['ngay'];?>/<?php echo $_SESSION['payment_info']['thang'];?>/<?php echo $_SESSION['payment_info']['nam'];?></td></tr>
								</table>
							</fieldset>
									<?php }?>
							<div class="col2-set">
								<div class="col-1" style="width:100%;">
									<div class="button-set">
										<p class="required">&nbsp;</p>
										<input type="hidden" id="sendorder" name="sendorder" value="1">
										<button onclick="javascript:window.location='/cart/payment?step=1'" class="form-button"><span><?php echo $this->return;?></span></button>
										<button type="submit" class="form-button" ><span><?php echo $this->order;?></span></button>
									</div>
								</div>
							</div>
						</div>
					</li>
					</form>

					</div>
				<?php } else {?>
				<form onsubmit="checkForm(this.name, <?php echo $this->text_arrCtrlLang	;?>); return false;" enctype="multipart/form-data" method="post" action="/cart/payment?step=2" name="payment">
					<li class="section allow active" id="opc-login">
						<div class="head">
							<h3><span class="step-count">1</span> &nbsp;<?php echo $this->check_out_1;?></h3>
						</div>
						<div style="" class="box a-item" id="checkout-step-1">
							<!--Checkout items-->
							
							<table cellspacing="0" border="0" class="data-table box-table shopping-cart" id="shopping-cart-table">
								<colgroup>
									<col width="15">
									<col width="75">
									<col>
									<col width="80">
									<col width="1">
									<col width="80">
								</colgroup>
								
								<thead>
									<tr class="first last">
										<th class="a-center"><?php echo $this->text_no	;?></th>
										<th class="a-center" rowspan="1"><?php echo $this->text_image	;?></th>
										<th rowspan="1"><?php echo $this->text_name	;?></th>
										<th colspan="1" class="a-center"><?php echo $this->text_price	;?></th>
										<th class="a-center" rowspan="1"><?php echo $this->text_quan	;?></th>
										<th colspan="1" class="a-center"><?php echo $this->text_total	;?></th>
										
									</tr>
								</thead>
								
								<tbody>
									<?php
					$subTotal=0;
					if(isset($this->cart))
					{
						if($this->cart==0)
						{
				?>
					<tr class="cart_content"><td align="center" valign="center" colspan="7"><?php echo $this->text_empty	;?></td></tr>
				<?php
						} else
						{
							if(is_array($this->cart))
							{
								$count=0;
								foreach($this->cart as $id=>$qty)
								{
								$count++;
								$cartProduct=0;
									foreach($this->Products as $product)
									{
										if($product["thing_id"]==$id)
										{
											$cartProduct=$product;
											break;
										}
									}
				?>
									<tr class="first even">
										<td class="a-center"><?php echo $count ?></td>
										<td><img height="75" width="75" alt="Computer" src="<?php echo $cartProduct["avatar"]?>"></td>
										<td>
											<h2 class="product-name">
												<a href="<a href="/index/detail?id=<?php echo $id;?>"><?php echo $cartProduct["title"]?></a>
											</h2>
											
										</td>
										<td class="a-right">
											<span class="cart-price">
												<span class="price"><?php echo "$".number_format($cartProduct["price"]) ?></span>            
											</span>
										</td>
										<td class="a-center">
											<?php echo $qty ?>
										</td>
										<td class="a-right last">
											<span class="cart-price">
												<span class="price"><?php echo "$".number_format($qty*$cartProduct["price"]) ?></span>            
											</span>
										</td>
									</tr>
									<?php
									$subTotal+=$qty*$cartProduct["price"];
								}
				?>
				<?php
							}
						}
					}
				?>									
									<tr class="first last odd">
										<td colspan="5" style="text-align:right; font-size:15px;font-weight:bold">
											<?php echo $this->text_subtotal;?>:
										</td>
										<td>
											<b style="color:red"><?php echo  "$".number_format($subTotal) ?></b>
										</td>
									</tr>
								</tbody>
							</table>
							<!--
							<script type="text/javascript">decorateTable('shopping-cart-table')</script>
							-->
							<!--end Checkout items-->
							
							<div class="col2-set">
								<div class="col-1" style="padding-top:10px;">
									<div style="width:70%;font-size:13px;" class="floatleft">
										<div style="margin-left:15px;margin-top:5px;font-size:15px;" class="redline"><?php echo $this->check_1_order	;?></div>
										<?php if(isset($this->order_user)) {?>
										<div style="width:100%;">
											<div id="formleft"><?php echo "*".$this->check_name	;?>:<br></div>
											<div id="formright"><input class="input-text" type="text" style="font-size:13px;width:190px;" readonly="readonly" name="ord_name" id="ord_name" value="<?php echo $this->order_user['user_name'];?>"><br></div>
											<div id="formleft"><?php echo $this->check_Sex	;?>:<br></div>
											<div id="formright">
												<select name="ord_genders" disabled="disabled" id="ord_genders" style="float:left;font-size:13px;">
												<?php if($this->order_user['sex']==1) {?>
												<option value="1" selected="selected"><?php echo $this->check_male	;?></option>
												<option value="0" ><?php echo $this->check_female	;?></option>
												<?php } else {?>
												<option value="0" selected="selected"><?php echo $this->check_female	;?></option>
												<option value="1" ><?php echo $this->check_male	;?></option>
												<?php }?>
												</select>
											</div>
											<div id="formleft" style="clear:both"><?php echo "*".$this->check_add	;?>:<br></div>
											<div id="formright"><input class="input-text" type="text" readonly="readonly" value="<?php echo $this->order_user['address'];?>" style="font-size:13px;width:190px;" name="ord_address" id="ord_address"><br></div>
											<div id="formleft">*Email:<br></div>
											<div id="formright"><input class="input-text" type="text" readonly="readonly" value="<?php echo $this->order_user['email'];?>"style="font-size:13px;width:190px;" name="ord_email" id="ord_email"><br></div>
											<div id="formleft"><?php echo "*".$this->check_phone;?>:<br></div>
											<div id="formright"><input class="input-text" type="text" readonly="readonly" value="<?php echo $this->order_user['phone'];?>" style="font-size:13px;width:190px;" name="ord_phone" id="ord_phone"><br></div>
											<div >Yahoo:<br></div>
											<div ><input class="input-text" type="text" readonly="readonly" value="<?php echo $this->order_user['yahoo'];?>" style="font-size:13px;width:190px;" name="ord_yahoo" id="ord_yahoo"><br></div>
											<div >Skype:<br></div>
											<div ><input class="input-text" type="text" readonly="readonly" value="<?php echo $this->order_user['skype'];?>" style="font-size:13px;width:190px;" name="ord_skype" id="ord_skype"><br></div>
											<div id="formleft"><?php echo $this->check_note	;?>:<br></div>
											<div id="formright"><textarea style="width:190px;font-size:13px;"  rows="3" cols="10" name="ord_note" id="ord_note"></textarea><br></div>
										</div>
									</div>
										<?php }?>
								</div>
																
								<div class="col-2" style="border:0px;font-size:13px;">
									<div style="width:70%;font-size:13px;">
										<div style="margin-left:10px;font-size:15px;"><?php echo $this->check_1_receiver	;?></div>
										<input onclick="checkSame(this.checked)" value="1" id="check_same" name="check_same" type="checkbox" style="clear:both;float:left;margin-left:25px;margin-top:5px;">
										<label style="float:left;font-size:12px;margin-left:5px;line-height:90%;margin-top:5px;" for="check_same"><?php echo $this->check_same;?></label><br>
										<div ><?php echo "*".$this->check_name	;?>:<br></div>
										<div ><input class="input-text" maxlength="50" type="text" name="ord_sname" id="ord_sname" value="<?php echo $this->currentrecieve['user_name'];?>" style="font-size:13px;width:190px;"><br></div>
										<div ><?php echo $this->check_Sex	;?>:<br></div>
										<div >
											
											<select name="ord_sgender" id="ord_sgender" style="float:left;font-size:13px;">
											<?php if($this->currentrecieve['sex']==1) {?>
											<option value="1" selected="selected"><?php echo $this->check_male	;?></option>
											<option value="0"><?php echo $this->check_female	;?></option>
											<?php } else {?>
											<option value="1"><?php echo $this->check_male	;?></option>
											<option value="0" selected="selected"><?php echo $this->check_female	;?></option>
											<?php }?>
											</select>
										</div>
										<div style="clear:both"></div>
										<div ><?php echo "*".$this->check_add	;?>:<br></div>
										<div ><input class="input-text" value="<?php echo $this->currentrecieve['address'];?>" type="text" name="ord_saddress" id="ord_saddress" style="font-size:13px;width:190px;" ><br></div>
										<div >*Email:<br></div>
										<div ><input class="input-text" maxlength="50" value="<?php echo $this->currentrecieve['email'];?>" type="text" name="ord_semail" id="ord_semail" style="font-size:13px;width:190px;" ><br></div>
										<div ><?php echo "*".$this->check_phone;?>:<br></div>
										<div ><input class="input-text" maxlength="20" value="<?php echo $this->currentrecieve['phone'];?>" type="text" name="ord_sphone" id="ord_sphone" style="font-size:13px;width:190px;" ><br></div>
										<div >Yahoo:<br></div>
										<div ><input class="input-text" maxlength="50" value="<?php echo $this->currentrecieve['yahoo'];?>" type="text" name="ord_syahoo" id="ord_syahoo" style="font-size:13px;width:190px;"><br></div>
										<div >Skype:<br></div>
										<div ><input class="input-text" maxlength="50" value="<?php echo $this->currentrecieve['skype'];?>" type="text" name="ord_sskype" id="ord_sskype" style="font-size:13px;width:190px;"><br></div>
										<div ><?php echo $this->check_note	;?>:<br></div>
										<div ><textarea style="width:190px;font-size:13px;" maxlength="200" rows="3" cols="10" name="ord_snote" id="ord_snote"><?php if(isset($this->currentrecieve['note']))echo $this->currentrecieve['note'];?></textarea><br></div>
									</div>
								</div>
							</div>
							
							<div class="col2-set" style="margin-top:10px; margin-left:15%; padding-bottom:10px;">
								<div class="col-1" style="width:70%;">
									<div style="margin-left:145px;font-size:15px;"><?php echo $this->check_1_paymethod	;?></div>
									<div style="clear:both;"></div>
									<div>
										<fieldset style="width:100%;padding:8px; border: 1px silver solid;">
											
											<?php if(isset($this->payment) && $this->payment!=null) { $i=0;?>
											<?php foreach($this->payment as $pay) { $i++;?>
												<div>
													<input type="radio" <?php if(isset($this->currentpayment) && $this->currentpayment == $pay['payment_id'] ){?> checked="checked"<?php }?> value="<?php echo $pay['payment_id'];?>" type="radio" name="pay" id="pay_<?php echo $pay['payment_id'];?>" style="float:left;width:auto;margin:auto;display:inline;" >
													<label for="pay_<?php echo $pay['payment_id'];?>" style="float:left;margin-left:5px;width:auto;line-height:90%;font-size:13px;" ><?php echo $pay['payment_name'];?></label>
												</div>
												<br>
												<?php } }?>
											
										</fieldset>
									</div>
								</div>
							</div>
							
							<div class="col2-set" style="margin-top:10px; margin-left:15%; padding-bottom:20px;">
								<div class="col-1" style="width:70%;">
									<div style="margin-left:145px;font-size:15px;" class="redline"><?php echo $this->check_1_transport	;?><br></div>
									<fieldset style="width:100%; border: 1px silver solid; padding:8px;">
										
											<?php if(isset($this->shipping) && $this->shipping!=null) {$i=0;?>
											<?php foreach($this->shipping as $ship) {$i++;?>
											<div class="margintop">
												<input type="radio" <?php if(isset($this->currentshipping) && $this->currentshipping == $ship['shipping_id'] ){?> checked="checked"<?php }?>  value="<?php echo $ship['shipping_id'];?>" name="ship" id="ship_<?php echo $ship['shipping_id'];?>" style="float:left;width:auto;margin:0 auto;" id="visa" name="pay">
												<label style="float:left;margin-left:5px;width:auto;line-height:90%;font-size:13px;" for="ship_<?php $ship['shipping_id'];?>"><?php echo $ship['shipping_name'];?></label>
											</div>
											<br>
											<?php } }?>
										
									</fieldset>
								</div>
							</div>
							
							<div class="col2-set">
								<div style="float:left;width:auto;margin-left:10%;">
									<div style="float:left;width:auto;font-size:13px;"><?php echo $this->check_1_re_time	;?>:</div>
									<input value="<?php if(isset($this->currenttime)) echo $this->currenttime['gio'];?>" type="text" id="gio" name="gio" maxlength="2" style="float:left;width:30px;margin-left:5px;">
									<input value="<?php if(isset($this->currenttime)) echo $this->currenttime['phut'];?>" type="text" id="phut" name="phut" maxlength="2" style="float:left;width:30px;margin-left:5px;">
									<select id="ngay" name="ngay" style="width:auto;float:left;margin-left:5px;">
									<?php for($i=1;$i<32;$i++) {?>
									<?php if(isset($this->currenttime)) { if($i==$this->currenttime['ngay']) {?>
									<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
									<?php } else {?>
									<option value="<?php echo $i;?>"><?php echo $i;?></option>
									<?php } } }?>
									</select>
									<select id="thang" name="thang" style="width:auto;float:left;margin-left:5px;">
									<?php for($i=1;$i<13;$i++) {?>
									<?php if(isset($this->currenttime)) { if($i==$this->currenttime['thang']) {?>
									<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
									<?php } else {?>
									<option value="<?php echo $i;?>"><?php echo $i;?></option>
									<?php } } }?>
									</select>
									<select id="nam" name="nam" style="width:auto;float:left;margin-left:5px;">
									<?php for($i=date("Y");$i<(date("Y")+4);$i++) {?>
									<?php if(isset($this->currenttime)) { if($i==$this->currenttime['nam']) {?>
									<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
									<?php } else {?>
									<option value="<?php echo $i;?>"><?php echo $i;?></option>
									<?php }}}?>
									</select>
									<div style="float:left;width:auto;font-size:13px;margin-left:5px;"><?php echo $this->check_1_time_format	;?></div>
								</div>
								<div style="clear:both;margin-left:30%;"><?php echo $this->check_1_review	;?></div>
							</div>
							
							<div class="col2-set">
								<div class="col-1" style="width:100%;">
									<div class="button-set">
										<p class="required">&nbsp;<?php echo $this->check_1_require	;?></p>
										<input type="submit" value="<?php echo $this->check_1_btn	;?>" class="form-button">
										<input type="hidden" id="total_price" name ="total_price" value="<?php echo $subTotal; ?>">
										<input type="hidden" id="ord_gender" name ="ord_gender" value="<?php echo $this->order_user['sex'];?>">
									</div>
								</div>
							</div>
						</div>
					</li>
				</form>
			<?php } ?>
				</ol>
			<?php }else{?>	
			<link rel="stylesheet" type="text/css" href="/css/style_checkout.css" />
			<?php IF(ISSET($_GET['step']) && $_GET['step']==2) {?>

		<!--Shopping Cart-->
				<form enctype="multipart/form-data" onsubmit="return checkstep()" method="post" action="/cart/payment" name="payment" id="payment" class="form">
				<p><?php echo $this->check_out_2;?></p>
				<div class="line"><hr></div>
				
				<div style="clear:both;"></div>
	
				<div style="margin-left:auto;margin-right:auto;" class="floatleft">
					<a href="javascript:checkPaymentStep(1);" style="background-color:#FFFFFF;" id="stepboard1" ><?php echo $this->check_1_label1;?></a>
					<a href="javascript:checkPaymentStep(2);" style="background-color:#FFFFCC;" id="stepboard2" ><?php echo $this->check_1_label2;?></a>
					<div style="clear:both;margin-top:40px;"></div>
				</div>
				<div style="clear:both;"></div>
				<div>
				<table class="shoppingcart" border="1" cellpadding="2" cellspacing="0"><!--Shopping Cart-->
				<tr style="height:40px;vertical-align: top;"><!--Headers-->
					<th class="No" width="40">
						<div><?php echo $this->text_no;?></div>
					</th>
					<th  width="120"><?php echo $this->text_image;?></th>
					<th class="Name" width="220"><?php echo $this->text_name;?></th>
					<th class="Price" width="100"><?php echo $this->text_price;?></th>
					<th class="Quantity" width="80"><?php echo $this->text_quan;?></th>
					<th class="Total" width="130"><?php echo $this->text_total;?></th>
				</tr>
				<?php
					$subTotal=0;
					if(isset($this->cart))
					{
						if($this->cart==0)
						{
				?>
					<tr class="cart_content"><td align="center" valign="center" colspan="7"><?php echo $this->text_empty;?></td></tr>
				<?php
						} else
						{
							if(is_array($this->cart))
							{
								$count=0;
								foreach($this->cart as $id=>$qty)
								{
								$count++;
								$cartProduct=0;
									foreach($this->Products as $product)
									{
										if($product["thing_id"]==$id)
										{
											$cartProduct=$product;
											break;
										}
									}
				?>
									<tr class="cart_content"><!--content 1st-->
										<td align="center" valign="top">
											<div style="font-weight:bold; font-size:16px"><?php echo $count ?></div>
										</td>
										<td align="center" valign="top"><img src="<?php echo $cartProduct["avatar"]?>" alt="" width="100" height="100" /></td>
										<td align="center" valign="top"><a href="/index/detail?id=<?php echo $id;?>"><?php echo $cartProduct["title"]?></a></td>
										<td align="center" valign="top"><?php echo "$".number_format($cartProduct["price"]) ?></td>
										<td align="center" valign="top"><?php echo $qty ?></td>
										<td align="center" valign="top"><?php echo "$".number_format($qty*$cartProduct["price"]) ?></td>
										<!--
										<td align="center" valign="top"><a href="/shoppingcart/index?DelProduct=<?php //echo $cartProduct["thing_id"] ?>">delete</a></td>
										-->
											
									</tr>
				<?php
									$subTotal+=$qty*$cartProduct["price"];
								}
				?>
				<?php
							}
						}
					}
				?>
				
				<tr style="height:40px;"><!--Bottom-->
					<th colspan="4">
						
					</th>
					<th><?php echo $this->text_subtotal;?>:</th>
					<th><?php echo  "$".number_format($subTotal) ?></th>
					
				</tr>
				</table>
				</div>
				
				<br><br>
				<?php if(isset($_SESSION['payment_info'])) {?>
				
				<fieldset style="margin-left: auto;	margin-right: auto;	width:100%;border-style: solid;	border-width: 0.1px; border-color:#E8E8E8;">
				<div id="grayboard">
					<?php echo $this->check_1_order;?>
					<a style="float:right;text-align:right;font-size:12px;text-decoration:underline;" href="/cart/payment?step=1#order_info"><?php echo $this->change;?></a>
				</div>
				
				<div style="width:auto;text-align:right;margin-top:10px;margin-left:90px;font-size:13px;" class="floatleft">
					<div class="margintop"><?php echo $this->check_name;?>:<br></div>
					<div class="margintop"><?php echo $this->check_Sex;?>:<br></div>
					<div class="margintop"><?php echo $this->check_add;?>:<br></div>
					<div class="margintop">*Email:<br></div>
					<div class="margintop"><?php echo $this->check_phone;?>:<br></div>
					<div class="margintop">Yahoo:<br></div>
					<div class="margintop">Skype:<br></div>
					<div class="margintop"><?php echo $this->check_note;?>:<br></div>
					<div style="clear:both;margin-top:7px;"></div>
				</div>
				<div style="width:auto;text-align:left;margin-top:10px;font-size:13px;margin-left:10px;color:#787878;" class="floatleft">
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_name'];?><br></div>
					<div class="margintop"><?php if($_SESSION['payment_info']['ord_gender']==1) { echo $this->check_male;} else {  echo $this->check_female; }?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_address'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_email'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_phone'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_yahoo'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_skype'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_note'];?><br></div>
					<div class="margintop"><br></div>
					<div style="clear:both;margin-top:7px;"></div>
				</div>
				</fieldset>
				<div style="clear:both;margin-top:10px;"></div>
				<fieldset style="margin-left: auto;	margin-right: auto;	width:100%;border-style: solid;	border-width: 0.1px; border-color:#E8E8E8;">
				<div id="grayboard">
					<?php echo $this->check_1_receiver;?>
					<a style="float:right;text-align:right;font-size:12px;text-decoration:underline;" href="/cart/payment?step=1#rec_info"><?php echo $this->change;?></a>
				</div>
				<div style="width:auto;text-align:right;margin-top:10px;margin-left:80px;font-size:13px;" class="floatleft">
					<div class="margintop"><?php echo $this->check_name;?>:<br></div>
					<div class="margintop"><?php echo $this->check_Sex;?>:<br></div>
					<div class="margintop"><?php echo $this->check_add;?>:<br></div>
					<div class="margintop">*Email:<br></div>
					<div class="margintop"><?php echo $this->check_phone;?>:<br></div>
					<div class="margintop">Yahoo:<br></div>
					<div class="margintop">Skype:<br></div>
					<div class="margintop"><?php echo $this->check_note;?>:<br></div>
					<div style="clear:both;margin-top:7px;"></div>
				</div>
				<div style="width:auto;text-align:left;margin-top:10px;font-size:13px;margin-left:10px;color:#787878;" class="floatleft">
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_sname'];?><br></div>
					<div class="margintop"><?php if($_SESSION['payment_info']['ord_sgender']==1) { echo $this->check_male;} else {  echo $this->check_female; }?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_saddress'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_semail'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_sphone'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_syahoo'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_sskype'];?><br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['ord_snote'];?><br></div>
					<div class="margintop"><br></div>
					<div style="clear:both;margin-top:7px;"></div>
				</div>
				</fieldset>
				<div style="clear:both;margin-top:10px;"></div>
				<fieldset style="margin-left: auto;	margin-right: auto;	width:100%;border-style: solid;	border-width: 0.1px; border-color:#E8E8E8;">
				<div id="grayboard">
					<?php echo $this->check_pay;?>
					<a style="float:right;text-align:right;font-size:12px;text-decoration:underline;" href="/cart/payment?step=1#pay_info"><?php echo $this->change;?></a>
				</div>
				<div style="width:auto;text-align:right;margin-top:10px;margin-left:60px;font-size:13px;" class="floatleft">
					<div class="margintop"><?php echo $this->pay;?>:<br></div>
					<div class="margintop"><?php echo $this->trans;?>:<br></div>
					<div class="margintop"><?php echo $this->check_1_re_time;?>:<br></div>
					<div style="clear:both;margin-top:7px;"></div>
				</div>
				<div style="width:auto;text-align:left;margin-top:10px;font-size:13px;margin-left:10px;color:#787878;" class="floatleft">
					<div class="margintop">
					<?php if(isset($this->payment) && $this->payment!=null) { ?>
					<?php foreach($this->payment as $pay) { 
					if($pay['payment_id']==$_SESSION['payment_info']['pay'])
						echo $pay['payment_name'];
					 }}?>	
					<br></div>
					<div class="margintop">
					<?php if(isset($this->shipping) && $this->shipping!=null) { ?>
					<?php foreach($this->shipping as $ship) { 
					if($ship['shipping_id']==$_SESSION['payment_info']['ship'])
						echo $ship['shipping_name'];
					 }}?>	
					<br></div>
					<div class="margintop"><?php echo $_SESSION['payment_info']['gio'];?>:<?php echo $_SESSION['payment_info']['phut'];?> <?php echo $_SESSION['payment_info']['ngay'];?>/<?php echo $_SESSION['payment_info']['thang'];?>/<?php echo $_SESSION['payment_info']['nam'];?><br></div>
					<div style="clear:both;margin-top:7px;"></div>
				</div>
				</fieldset>
				<?php }?>
				<div style="margin-top:10px;"></div>
				<div id="yellowboard">
					<div class="redline">
					<div style="width:auto;"><?php echo $this->check_review;?>
					<input type="hidden" id="sendorder" name="sendorder" value="1">
					<button type="submit" style="width:auto;height:auto;font-size:14px;margin-left:10px;" type="button"><div style="width:auto;padding:5px;"><?php echo $this->order;?></button>
					<button onclick="javascript:window.location='/cart/payment?step=1'"  style="width:auto;height:auto;font-size:14px;margin-left:10px;padding:5px;" type="button"><?php echo $this->return;?></button>
					</div>
					</div>
				</div>
				</form>
		<?php } else {?>
			<!--Shopping Cart-->
				<p><?php echo $this->check_out_1;?></p>
				<div class="line"><hr></div>
				<div style="clear:both;"></div>
	
				<div class="floatleft" style="margin-left:auto;margin-right:auto;">
					<a href="javascript:checkPaymentStep(1);" id="stepboard1" style="background-color:#FFFFCC;"><?php echo $this->check_1_label1	;?></a>
					<a  href="javascript:checkPaymentStep(2);"id="stepboard2" style="background-color:#FFFFFF;"><?php echo $this->check_1_label2	;?></a>
					<div style="clear:both;margin-top:40px;"></div>
				</div>
				<div style="clear:both;"></div>
				<div>
				<form name="cartForm" action="/cart/payment?payment=1" method="post">
			
				<table class="shoppingcart" border="1" cellpadding="2" cellspacing="0"><!--Shopping Cart-->
				<tr style="height:40px;vertical-align: top;"><!--Headers-->
					<th class="No" width="40">
					<div><?php echo $this->text_no	;?>	</div>
					</th>
					<th  width="120"><?php echo $this->text_image	;?>	</th>
					<th class="Name" width="220"><?php echo $this->text_name	;?>	</th>
					<th class="Price" width="100"><?php echo $this->text_price	;?>	</th>
					<th class="Quantity" width="80"><?php echo $this->text_quan	;?></th>
					<th class="Total" width="130"><?php echo $this->text_total	;?></th>
				</tr>
				<?php
					$subTotal=0;
					if(isset($this->cart))
					{
						if($this->cart==0)
						{
				?>
					<tr class="cart_content"><td align="center" valign="center" colspan="7"><?php echo $this->text_empty	;?></td></tr>
				<?php
						} else
						{
							if(is_array($this->cart))
							{
								$count=0;
								foreach($this->cart as $id=>$qty)
								{
								$count++;
								$cartProduct=0;
									foreach($this->Products as $product)
									{
										if($product["thing_id"]==$id)
										{
											$cartProduct=$product;
											break;
										}
									}
				?>
									<tr class="cart_content"><!--content 1st-->
										<td align="center" valign="top">
											<div style="font-weight:bold; font-size:16px"><?php echo $count ?></div>
										</td>
										<td align="center" valign="top"><img src="<?php echo $cartProduct["avatar"]?>" alt="" width="100" height="100" /></td>
										<td align="center" valign="top"><a href="/index/detail?id=<?php echo $id;?>"><?php echo $cartProduct["title"]?></a></td>
										<td align="center" valign="top"><?php echo "$".number_format($cartProduct["price"]) ?></td>
										<td align="center" valign="top"><?php echo $qty ?></td>
										<td align="center" valign="top"><?php echo "$".number_format($qty*$cartProduct["price"]) ?></td>
										<!--
										<td align="center" valign="top"><a href="/shoppingcart/index?DelProduct=<?php //echo $cartProduct["thing_id"] ?>">delete</a></td>
										-->
										
									</tr>
				<?php
									$subTotal+=$qty*$cartProduct["price"];
								}
				?>
				<?php
							}
						}
					}
				?>
				
				<tr style="height:40px;"><!--Bottom-->
					<th colspan="4">
						<!--<a id="delBtnlink" href="/shoppingcart/index"><input type="button" name="btnDel" value="Delete" class="cart_button" /></a>-->
						
					</th>
					<th><?php echo $this->text_subtotal	;?></th>
					<th><?php echo "$".number_format($subTotal) ?></th>
				</tr>
				</table>
				
			</form>
				</div>
				
				<div style="clear:both;"></div>
				<form onsubmit="checkForm(this.name, <?php echo $this->text_arrCtrlLang	;?>); return false;" enctype="multipart/form-data" method="post" action="/cart/payment?step=2" name="payment" class="form">
				
				<fieldset style="width:100%;border-style: solid;border-width: 1px;border-color:#D9D9D9;">
					<div class="grayline"><div style="margin-left:35%;margin-top:15px;"><?php echo $this->check_1_require	;?></div></div>
					<div class="floatleft" style="width:30%;font-size:13px;">
						<div class="redline" style="margin-left:30%;margin-top:5px;font-size:15px;"><?php echo $this->check_1_order	;?></div>
						<?php if(isset($this->order_user)) {?>
						<div id="order_info" style="width:100%;">
							<div class="margintop"></div>
						<br>
							<div id="formleft"><?php echo "*".$this->check_name	;?>:<br/></div>
							<div id="formright"><input type="text" readonly="readonly" name="ord_name" id="ord_name" value="<?php echo $this->order_user['user_name'];?>" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft"><?php echo $this->check_Sex	;?>:<br/></div>
							<div id="formright">
								<select  name="ord_genders" disabled="disabled" id="ord_genders" style="float:left;font-size:13px;">
								<?php if($this->order_user['sex']==1) {?>
								<option value="1" selected="selected"><?php echo $this->check_male	;?></option>
								<option value="0" ><?php echo $this->check_female	;?></option>
								<?php } else {?>
								<option value="1"><?php echo $this->check_male	;?></option>
								<option value="0" selected="selected"><?php echo $this->check_female	;?></option>
								<?php }?>
								</select>
								
						</div>
							<div id="formleft"><?php echo "*".$this->check_add	;?>:<br/></div>
							<div id="formright"><input readonly="readonly" value="<?php echo $this->order_user['address'];?>" type="text" name="ord_address" id="ord_address" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft">*Email:<br/></div>
							<div id="formright"><input readonly="readonly" value="<?php echo $this->order_user['email'];?>" type="text" name="ord_email" id="ord_email" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft"><?php echo "*".$this->check_phone;?>:<br/></div>
							<div id="formright"><input readonly="readonly" value="<?php echo $this->order_user['phone'];?>" type="text" name="ord_phone" id="ord_phone" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft">Yahoo:<br/></div>
							<div id="formright"><input readonly="readonly" value="<?php echo $this->order_user['yahoo'];?>" type="text" name="ord_yahoo" id="ord_yahoo" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft">Skype:<br/></div>
							<div id="formright"><input readonly="readonly" value="<?php echo $this->order_user['skype'];?>" type="text" name="ord_skype" id="ord_skype" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft"><?php echo $this->check_note	;?>:<br/></div>
							<div id="formright"><textarea rows="3" cols="10" name="ord_note" id="ord_note" style="width:190px;font-size:13px;"><?php if(isset($this->order_user['note']))echo $this->order_user['note'];?></textarea><br /></div>
						</div>
						<?php }?>
					</div>

					<div class="floatright" style="width:70%;font-size:13px;">
						<div id="rec_info" class="redline" style="margin-left:40%;margin-top:5px;font-size:15px;"><?php echo $this->check_1_receiver	;?><br/></div>
					
						<div class="margintop"></div>
						<input onclick="checkSame(this.checked)" value="1" id="check_same" name="check_same" type="checkbox" style="clear:both;float:left;width:auto;margin-left:47%;">
						<label class="text_link" for="check_same" style="float:left;font-size:12px;margin-left:5px;"><?php echo $this->check_same;?></label><br/>
						
							<div id="formleft"><?php echo "*".$this->check_name	;?>:<br/></div>
							<div id="formright"><input type="text" maxlength="50" name="ord_sname" id="ord_sname" value="<?php echo $this->currentrecieve['user_name'];?>" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft"><?php echo $this->check_Sex	;?>:<br/></div>
							<div id="formright">
								<select name="ord_sgender" id="ord_sgender" style="float:left;font-size:13px;">
								<?php if($this->currentrecieve['sex']==1) {?>
								<option value="1" selected="selected"><?php echo $this->check_male	;?></option>
								<option value="0"><?php echo $this->check_female	;?></option>
								<?php } else {?>
								<option value="1"><?php echo $this->check_male	;?></option>
								<option value="0" selected="selected"><?php echo $this->check_female	;?></option>
								<?php }?>
								</select>
							</div>
							<div id="formleft"><?php echo "*".$this->check_add	;?>:<br/></div>
							<div id="formright"><input value="<?php echo $this->currentrecieve['address'];?>" type="text" name="ord_saddress" id="ord_saddress" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft">*Email:<br/></div>
							<div id="formright"><input maxlength="50" value="<?php echo $this->currentrecieve['email'];?>" type="text" name="ord_semail" id="ord_semail" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft"><?php echo "*".$this->check_phone;?>:<br/></div>
							<div id="formright"><input maxlength="20" value="<?php echo $this->currentrecieve['phone'];?>" type="text" name="ord_sphone" id="ord_sphone" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft">Yahoo:<br/></div>
							<div id="formright"><input maxlength="50" value="<?php echo $this->currentrecieve['yahoo'];?>" type="text" name="ord_syahoo" id="ord_syahoo" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft">Skype:<br/></div>
							<div id="formright"><input maxlength="50" value="<?php echo $this->currentrecieve['skype'];?>" type="text" name="ord_sskype" id="ord_sskype" style="font-size:13px;width:190px;"/><br /></div>
							<div id="formleft"><?php echo $this->check_note	;?>:<br/></div>
							<div id="formright"><textarea maxlength="200" rows="3" cols="10" name="ord_snote" id="ord_snote" style="width:190px;font-size:13px;"><?php if(isset($this->currentrecieve['note']))echo $this->currentrecieve['note'];?></textarea><br /></div>
							
					</div>
				
				<div id="pay_info" class="redline" style="margin-left:40%;margin-top:320px;font-size:15px;"><?php echo $this->check_1_paymethod	;?><br/></div>
				<div style="clear:both;"></div>
				<div class="margintop">
					<fieldset style="width:50%;margin-left:auto;margin-right:auto;padding:8px;">
					<?php if(isset($this->payment) && $this->payment!=null) { $i=0;?>
					<?php foreach($this->payment as $pay) { $i++;?>
					
					<div class="margintop">
					<input <?php if(isset($this->currentpayment) && $this->currentpayment == $pay['payment_id'] ){?> checked="checked"<?php }?> value="<?php echo $pay['payment_id'];?>" type="radio" name="pay" id="pay_<?php echo $pay['payment_id'];?>" style="float:left;width:auto;margin:auto;display:inline;"/>
					<label for="pay_<?php echo $pay['payment_id'];?>" style="float:left;margin-left:5px;width:auto;line-height:90%;font-size:13px;"><?php echo $pay['payment_name'];?></label>
					</div>
					<br/>
					<?php } }?>
					</fieldset>
				</div>
				
				<div class="redline" style="margin-left:40%;margin-top:30px;font-size:15px;"><?php echo $this->check_1_transport	;?><br/></div>
				<div class="margintop"></div>
					<fieldset style="width:50%;margin-left:auto;margin-right:auto;padding:8px;">
					
						<?php if(isset($this->shipping) && $this->shipping!=null) {$i=0;?>
						<?php foreach($this->shipping as $ship) {$i++;?>
						<div class="margintop">
						<input type="radio" <?php if(isset($this->currentshipping) && $this->currentshipping == $ship['shipping_id'] ){?> checked="checked"<?php }?>  value="<?php echo $ship['shipping_id'];?>" name="ship" id="ship_<?php echo $ship['shipping_id'];?>" style="float:left;width:auto;margin:auto;display:inline;"/>
						<label for="ship_<?php $ship['shipping_id'];?>" style="float:left;margin-left:5px;width:auto;line-height:90%;font-size:13px;"><?php echo $ship['shipping_name'];?></label>
						</div>
						<br/>
						<?php } }?>
						
					</fieldset>
					<fieldset style="width:80%;margin-left:auto;margin-right:auto;border:0;">
					<div style="margin-top:20px;"></div>
						
							<div style="float:left;width:auto;font-size:13px;"><?php echo "*".$this->check_1_re_time	;?>:</div>
							<input value="<?php if(isset($this->currenttime)) echo $this->currenttime['gio'];?>" type="text" id="gio" name="gio" maxlength="2" style="float:left;width:30px;margin-left:5px;">
							<input value="<?php if(isset($this->currenttime)) echo $this->currenttime['phut'];?>" type="text" id="phut" name="phut" maxlength="2" style="float:left;width:30px;margin-left:5px;">
							<select id="ngay" name="ngay" style="width:auto;float:left;margin-left:5px;">
							<?php for($i=1;$i<32;$i++) {?>
							<?php if(isset($this->currenttime)) { if($i==$this->currenttime['ngay']) {?>
							<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
							<?php } else {?>
							<option value="<?php echo $i;?>"><?php echo $i;?></option>
							<?php } } }?>
							</select>
							<select id="thang" name="thang" style="width:auto;float:left;margin-left:5px;">
							<?php for($i=1;$i<13;$i++) {?>
							<?php if(isset($this->currenttime)) { if($i==$this->currenttime['thang']) {?>
							<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
							<?php } else {?>
							<option value="<?php echo $i;?>"><?php echo $i;?></option>
							<?php } } }?>
							</select>
							<select id="nam" name="nam" style="width:auto;float:left;margin-left:5px;">
							<?php for($i=date("Y");$i<(date("Y")+4);$i++) {?>
							<?php if(isset($this->currenttime)) { if($i==$this->currenttime['nam']) {?>
							<option selected="selected" value="<?php echo $i;?>"><?php echo $i;?></option>
							<?php } else {?>
							<option value="<?php echo $i;?>"><?php echo $i;?></option>
							<?php }}}?>
							</select>
							<div style="float:left;width:auto;font-size:13px;margin-left:5px;"><?php echo $this->check_1_time_format	;?></div>
					</fieldset>
					<div style="margin-top:30px;"></div>
				</fieldset>
				<div style="margin-top:10px;"></div>
				<div id="yellowboard">
					<div class="redline">
					<div style="width:auto;"><?php echo $this->check_1_review	;?>
					<input type="submit" value="<?php echo $this->check_1_btn	;?>" style="width:auto;height:auto;font-size:14px;margin-left:10px;padding:5px;">
					<input type="hidden" id="total_price" name ="total_price" value="<?php echo $subTotal; ?>">
					<input type="hidden" id="ord_gender" name ="ord_gender" value="<?php echo $this->order_user['sex'];?>">
					
					</div>
					</div>
				</div>
				</form>
		<?php }}}?>
<script type="text/javascript">
var arrCtrlPaymentVI= Array ("0{#}{#}ord_name{#}tên người đặt hàng",
"0{#}{#}ord_address{#}địa chỉ người đặt hàng",
"3{#}{#}ord_email{#}email người đặt hàng",
"0{#}{#}ord_phone{#}điện thoại người đặt hàng",
"7{#}{#}ord_phone{#}điện thoại người đặt hàng",
"0{#}{#}ord_sname{#}tên người nhận hàng",
"0{#}{#}ord_saddress{#}địa chỉ người nhận hàng",
"3{#}{#}ord_semail{#}email người nhận hàng",
"0{#}{#}ord_sphone{#}điện thoại người nhận hàng",
"7{#}{#}ord_sphone{#}điện thoại người nhận hàng",
"0{#}{#}gio{#}giờ nhận hàng",
"7{#}{#}gio{#}giờ nhận hàng",
"8{#}23{#}gio{#}giờ nhận hàng",
"0{#}{#}phut{#}phút nhận hàng",
"7{#}{#}phut{#}phút nhận hàng",
"8{#}59{#}phut{#}phút nhận hàng"
);
var arrCtrlPaymentEN= Array ("0{#}{#}ord_name{#}order's name",
"0{#}{#}ord_address{#}order's address",
"3{#}{#}ord_email{#}order's email",
"0{#}{#}ord_phone{#}order's phone",
"7{#}{#}ord_phone{#}order's phone",
"0{#}{#}ord_sname{#}receiver's name",
"0{#}{#}ord_saddress{#}receiver's address",
"3{#}{#}ord_semail{#}receiver's email",
"0{#}{#}ord_sphone{#}receiver's phone",
"7{#}{#}ord_sphone{#}receiver's phone",
"0{#}{#}hour{#}time to receive",
"7{#}{#}hour{#}time to receive",
"8{#}23{#}hour{#}time to receive",
"0{#}{#}minute{#}time to receive",
"7{#}{#}minute{#}time to receive",
"8{#}59{#}minute{#}time to receive"
);
</script>
<script type="text/javascript">
<?php if(isset($_SESSION['payment_info'])&& $_SESSION['payment_info']!=null){?>
var paymentStep= "1,2";
<?php } else {?>
var paymentStep= "1";
<?php }?>

function checkPaymentStep(step){
if(paymentStep.indexOf(step) == -1){
alert("<?php echo $this->skip	;?> " + (step-1) + ".");
return;
}
window.location="/cart/payment?step=" + step + "";
}
</script>
<script type="text/javascript">
function checkSame(c){
var arrOb= Array("name", "gender", "address", "email", "phone", "yahoo", "skype", "note");
for(i=0; i<arrOb.length; i++){
value= (c ? document.getElementById("ord_" + arrOb[i]).value : "");
document.getElementById("ord_s" + arrOb[i]).value = value;
}
}

function checkstep()
{
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange = function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
			alert('<?php echo $this->ok	;?>');
			window.location="/index";
		}
	}
	xmlhttp.open("GET","/cart/payment?"+$("#payment").serialize(),true);
	xmlhttp.send();
	return false;
}
</script>
<div style="clear: both;"></div>